package com.qlk.test.odcinterface.rest;

import org.junit.Test;
import org.springframework.util.Assert;

import com.qlk.common.client.AbstractClient;
import com.qlk.test.odcinterface.rest.dto.PmsChannels;
import com.qlk.test.odcinterface.rest.request.PmsChannelsRequest;
import com.qlk.test.odcinterface.rest.response.PmsChannelsResponse;
import com.qlk.test.odcinterface.rest.Urls;

/**
 * PmsChannelsResource单元测试
 * 
 * @author zhaoyanan
 * @version 2016-4-14 13:22:59
 * 
 */
public class PmsChannelsResourceTestCase extends AbstractClient {
    
    @Test
    public void testGetPmsChannels() {
        String url= Urls.API_DOMAIN + "/pmsChannels/getPmsChannels";

        PmsChannelsRequest request = new PmsChannelsRequest();
//        request.setId(1l);
        PmsChannelsResponse response = super.getRestTemplate().postForObject(url, request, PmsChannelsResponse.class);
        Assert.notNull(response);
        PmsChannels pmsChannels = super.getResult(response);
        Assert.notNull(pmsChannels);
    }
}
